<?php
    defined( 'BASEPATH' ) OR exit( 'No direct script access allowed' );

    class AdminAuth extends Admin_Controller
    {
        public function getAdminGroupList()
        {
            #接受参数
            $d = $this->input->get( 'd' );

            #请求数据
            if ( $d == 'd' ) {
                $this->load->model( "admin/admin_model" );
                $grouplist = $this->admin_model->getAdminGroupList( GLOBAL_START_ROW, GLOBAL_ROWS );
                if ( !$grouplist[ 'isok' ] ) P::exitError( $grouplist );
                P::exitOk( $grouplist[ 'data' ][ 'list' ], $grouplist[ 'data' ][ 'counts' ] );
            }

            #请求界面
            $this->layout->view( "admin/getAdminGroupList" );
        }
        public function saveAdminGroup()
        {
            $post=$_POST?$this->input->post():$this->input->get();
            //编辑
            $this->load->model( "admin/authrule_model" );
            $this->authrule_model->saveGroup( $post);
        }
        public function group()
        {

        }

    }
